package com.tom.zojbackendserviceclient.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tom.zojbackendmodel.model.dto.question.QuestionQueryRequest;
import com.tom.zojbackendmodel.model.entity.Question;
import com.tom.zojbackendmodel.model.entity.QuestionSubmit;
import com.tom.zojbackendmodel.model.vo.QuestionVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

/**
* @description 针对表【question(题目)】的数据库操作Service
*/
@FeignClient(value = "zoj-backend-question-service",path = "api/question/inner")
public interface QuestionFeignClient{

    @GetMapping("/get/id")
    Question getQuestionById(@RequestParam("questionId") Long questionId);

    @GetMapping("/questionsSubmit/get/id")
    QuestionSubmit getQuestionSubmitById(@RequestParam("submitId") Long submitId);

    @PostMapping("/questionsSubmit/update")
   boolean updateQuestionSubmitById(@RequestBody QuestionSubmit questionSubmit);

    @PostMapping("/question/update")
    boolean updateById(@RequestBody Question updateQuestion);
}
